import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn, Timestamp } from 'typeorm';

@Entity()
export class Base {

    //主键ID
    @PrimaryGeneratedColumn({ comment: '主键ID' })
    id: number;

    //创建时间
    @CreateDateColumn({ type: 'timestamp', name: 'create_date', comment: '创建时间' })
    created_date: Date;

    //修改时间
    @UpdateDateColumn({ type: 'timestamp', name: 'update_date', comment: '修改时间' })
    update_date: Date;

}

